package com.swt.draw.example;

import java.util.ArrayList;
import java.util.List;

public class LimitExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LimitExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLimitNoIsNull() {
            addCriterion("limit_no is null");
            return (Criteria) this;
        }

        public Criteria andLimitNoIsNotNull() {
            addCriterion("limit_no is not null");
            return (Criteria) this;
        }

        public Criteria andLimitNoEqualTo(String value) {
            addCriterion("limit_no =", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoNotEqualTo(String value) {
            addCriterion("limit_no <>", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoGreaterThan(String value) {
            addCriterion("limit_no >", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoGreaterThanOrEqualTo(String value) {
            addCriterion("limit_no >=", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoLessThan(String value) {
            addCriterion("limit_no <", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoLessThanOrEqualTo(String value) {
            addCriterion("limit_no <=", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoLike(String value) {
            addCriterion("limit_no like", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoNotLike(String value) {
            addCriterion("limit_no not like", value, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoIn(List<String> values) {
            addCriterion("limit_no in", values, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoNotIn(List<String> values) {
            addCriterion("limit_no not in", values, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoBetween(String value1, String value2) {
            addCriterion("limit_no between", value1, value2, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNoNotBetween(String value1, String value2) {
            addCriterion("limit_no not between", value1, value2, "limitNo");
            return (Criteria) this;
        }

        public Criteria andLimitNameIsNull() {
            addCriterion("limit_name is null");
            return (Criteria) this;
        }

        public Criteria andLimitNameIsNotNull() {
            addCriterion("limit_name is not null");
            return (Criteria) this;
        }

        public Criteria andLimitNameEqualTo(String value) {
            addCriterion("limit_name =", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameNotEqualTo(String value) {
            addCriterion("limit_name <>", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameGreaterThan(String value) {
            addCriterion("limit_name >", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameGreaterThanOrEqualTo(String value) {
            addCriterion("limit_name >=", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameLessThan(String value) {
            addCriterion("limit_name <", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameLessThanOrEqualTo(String value) {
            addCriterion("limit_name <=", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameLike(String value) {
            addCriterion("limit_name like", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameNotLike(String value) {
            addCriterion("limit_name not like", value, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameIn(List<String> values) {
            addCriterion("limit_name in", values, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameNotIn(List<String> values) {
            addCriterion("limit_name not in", values, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameBetween(String value1, String value2) {
            addCriterion("limit_name between", value1, value2, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitNameNotBetween(String value1, String value2) {
            addCriterion("limit_name not between", value1, value2, "limitName");
            return (Criteria) this;
        }

        public Criteria andLimitStatusIsNull() {
            addCriterion("limit_status is null");
            return (Criteria) this;
        }

        public Criteria andLimitStatusIsNotNull() {
            addCriterion("limit_status is not null");
            return (Criteria) this;
        }

        public Criteria andLimitStatusEqualTo(Short value) {
            addCriterion("limit_status =", value, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusNotEqualTo(Short value) {
            addCriterion("limit_status <>", value, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusGreaterThan(Short value) {
            addCriterion("limit_status >", value, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("limit_status >=", value, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusLessThan(Short value) {
            addCriterion("limit_status <", value, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusLessThanOrEqualTo(Short value) {
            addCriterion("limit_status <=", value, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusIn(List<Short> values) {
            addCriterion("limit_status in", values, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusNotIn(List<Short> values) {
            addCriterion("limit_status not in", values, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusBetween(Short value1, Short value2) {
            addCriterion("limit_status between", value1, value2, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitStatusNotBetween(Short value1, Short value2) {
            addCriterion("limit_status not between", value1, value2, "limitStatus");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeIsNull() {
            addCriterion("limit_create_time is null");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeIsNotNull() {
            addCriterion("limit_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeEqualTo(String value) {
            addCriterion("limit_create_time =", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeNotEqualTo(String value) {
            addCriterion("limit_create_time <>", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeGreaterThan(String value) {
            addCriterion("limit_create_time >", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("limit_create_time >=", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeLessThan(String value) {
            addCriterion("limit_create_time <", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("limit_create_time <=", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeLike(String value) {
            addCriterion("limit_create_time like", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeNotLike(String value) {
            addCriterion("limit_create_time not like", value, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeIn(List<String> values) {
            addCriterion("limit_create_time in", values, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeNotIn(List<String> values) {
            addCriterion("limit_create_time not in", values, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeBetween(String value1, String value2) {
            addCriterion("limit_create_time between", value1, value2, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateTimeNotBetween(String value1, String value2) {
            addCriterion("limit_create_time not between", value1, value2, "limitCreateTime");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByIsNull() {
            addCriterion("limit_create_by is null");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByIsNotNull() {
            addCriterion("limit_create_by is not null");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByEqualTo(String value) {
            addCriterion("limit_create_by =", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByNotEqualTo(String value) {
            addCriterion("limit_create_by <>", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByGreaterThan(String value) {
            addCriterion("limit_create_by >", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("limit_create_by >=", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByLessThan(String value) {
            addCriterion("limit_create_by <", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByLessThanOrEqualTo(String value) {
            addCriterion("limit_create_by <=", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByLike(String value) {
            addCriterion("limit_create_by like", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByNotLike(String value) {
            addCriterion("limit_create_by not like", value, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByIn(List<String> values) {
            addCriterion("limit_create_by in", values, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByNotIn(List<String> values) {
            addCriterion("limit_create_by not in", values, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByBetween(String value1, String value2) {
            addCriterion("limit_create_by between", value1, value2, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitCreateByNotBetween(String value1, String value2) {
            addCriterion("limit_create_by not between", value1, value2, "limitCreateBy");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1IsNull() {
            addCriterion("limit_extend1 is null");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1IsNotNull() {
            addCriterion("limit_extend1 is not null");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1EqualTo(String value) {
            addCriterion("limit_extend1 =", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1NotEqualTo(String value) {
            addCriterion("limit_extend1 <>", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1GreaterThan(String value) {
            addCriterion("limit_extend1 >", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1GreaterThanOrEqualTo(String value) {
            addCriterion("limit_extend1 >=", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1LessThan(String value) {
            addCriterion("limit_extend1 <", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1LessThanOrEqualTo(String value) {
            addCriterion("limit_extend1 <=", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1Like(String value) {
            addCriterion("limit_extend1 like", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1NotLike(String value) {
            addCriterion("limit_extend1 not like", value, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1In(List<String> values) {
            addCriterion("limit_extend1 in", values, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1NotIn(List<String> values) {
            addCriterion("limit_extend1 not in", values, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1Between(String value1, String value2) {
            addCriterion("limit_extend1 between", value1, value2, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend1NotBetween(String value1, String value2) {
            addCriterion("limit_extend1 not between", value1, value2, "limitExtend1");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2IsNull() {
            addCriterion("limit_extend2 is null");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2IsNotNull() {
            addCriterion("limit_extend2 is not null");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2EqualTo(String value) {
            addCriterion("limit_extend2 =", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2NotEqualTo(String value) {
            addCriterion("limit_extend2 <>", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2GreaterThan(String value) {
            addCriterion("limit_extend2 >", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2GreaterThanOrEqualTo(String value) {
            addCriterion("limit_extend2 >=", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2LessThan(String value) {
            addCriterion("limit_extend2 <", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2LessThanOrEqualTo(String value) {
            addCriterion("limit_extend2 <=", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2Like(String value) {
            addCriterion("limit_extend2 like", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2NotLike(String value) {
            addCriterion("limit_extend2 not like", value, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2In(List<String> values) {
            addCriterion("limit_extend2 in", values, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2NotIn(List<String> values) {
            addCriterion("limit_extend2 not in", values, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2Between(String value1, String value2) {
            addCriterion("limit_extend2 between", value1, value2, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitExtend2NotBetween(String value1, String value2) {
            addCriterion("limit_extend2 not between", value1, value2, "limitExtend2");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkIsNull() {
            addCriterion("limit_remark is null");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkIsNotNull() {
            addCriterion("limit_remark is not null");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkEqualTo(String value) {
            addCriterion("limit_remark =", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkNotEqualTo(String value) {
            addCriterion("limit_remark <>", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkGreaterThan(String value) {
            addCriterion("limit_remark >", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("limit_remark >=", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkLessThan(String value) {
            addCriterion("limit_remark <", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkLessThanOrEqualTo(String value) {
            addCriterion("limit_remark <=", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkLike(String value) {
            addCriterion("limit_remark like", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkNotLike(String value) {
            addCriterion("limit_remark not like", value, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkIn(List<String> values) {
            addCriterion("limit_remark in", values, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkNotIn(List<String> values) {
            addCriterion("limit_remark not in", values, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkBetween(String value1, String value2) {
            addCriterion("limit_remark between", value1, value2, "limitRemark");
            return (Criteria) this;
        }

        public Criteria andLimitRemarkNotBetween(String value1, String value2) {
            addCriterion("limit_remark not between", value1, value2, "limitRemark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}